<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<div>
		<span>123</span>
	</div>
	<script>
		var div = document.getElementsByTagName('div')[0];
		div.innerHTML = '<div>哈哈哈</div>';
	</script>
</body>
</html>